package xyz.xiaomeiqiu.netty.router;

import java.util.List;
import java.util.Random;

public class RandomHttpEndpointRouter implements HttpEndpointRouter {

    private final Random r = new Random();

    @Override
    public String route(List<String> proxyServer) {
        return proxyServer.get(r.nextInt(proxyServer.size()));
    }

}
